<template>
  <div class="recommend">
    <router-link class="recommend-item" v-for="item in data" :to="item.link">
      <img :src="item.image" :alt="item.title"/>
      <div>{{item.title}}</div>
    </router-link>
  </div>
</template>

<script>
  export default {
    name: "recommendIndex",
    props: {
      data: Array
    }
  }
</script>

<style scoped>
  .recommend {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    padding: 10px 0 0;
    border-bottom: 8px solid #eeeeee;
  }

  .recommend-item {
    text-align: center;
    flex: 25%;
    margin: 0 0 15px;
  }

  .recommend img {
    width: 68px;
    height: 68px;
    margin-bottom: 10px;
  }
</style>